import SHOPAPI from '../../utils/api'
import createApiAction from './createApiAction'

const animeAction = {
  // 获取动漫列表
  getAnime: createApiAction({
    url: SHOPAPI('api.php?s=home-react-Week'),
    method: 'GET',
    state: 'GET_ANIME'
  }),
  // 动漫列表
  getList: createApiAction({
    url: SHOPAPI('api.php?s=home-react-list'),
    method: 'GET',
    state: 'GET_LIST'
  }),
  // 搜索动漫
  soAnime: createApiAction({
    url: SHOPAPI('api.php?s=home-search-s'),
    method: 'GET'
  }),
  // 获取详情
  getDetail: createApiAction({
    url: SHOPAPI('api.php?s=home-react-detail'),
    method: 'GET',
    state: 'GET_DETAIL'
  }),
  // 获取播放列表
  getPlayList: createApiAction({
    url: SHOPAPI('api.php?s=home-react-play'),
    method: 'GET',
    state: 'GET_PLAY_LIST'
  }),
  // 获取播放内容
  getPlay: createApiAction({
    url: SHOPAPI('api.php?s=home-react-play'),
    method: 'GET',
    state: 'GET_PLAY'
  })
}
export default animeAction
